﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master" AutoEventWireup="true" Inherits="Project_Edit" Title="无标题页" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
     <script type="text/javascript" src="../common/Js/calendar.js"></script>
    <style type="text/css">
        .style1
        {
            width: 84px;
            height: 30px;
            text-align: right; padding-right:15px;
        }
        .style2
        {
            text-align: left;           
        }
        
        .style2 table tr td
        {
        	border-bottom-width:0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlMain" runat="server" CssClass="pnlMain" style="height:297px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" class="tbl1">
            <tr>
                <td class="style1">
                    <span style="color:Red">*</span>&nbsp;<asp:Label ID="Label1" runat="server" Text="项目名称："></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Name" runat="server" Width="250px" CssClass="txt"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="Name" Display="None" ErrorMessage="请输入项目名称" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label10" runat="server" Text="项目类型："></asp:Label>
                </td>
                <td class="style2">
                    <asp:DropDownList ID="TypeCode" runat="server" Width="90px">
                    </asp:DropDownList> &nbsp;<asp:Label ID="Label9" runat="server" Text="金额："></asp:Label>&nbsp;<asp:TextBox 
                        ID="Budget" runat="server" Width="60px" CssClass="txt"></asp:TextBox>
                    (万元)<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="Budget" Display="None" ErrorMessage="数据格式不对" SetFocusOnError="true"
                        ValidationExpression="[^\,](\d|\,)*\.?\d*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color:Red">*</span>&nbsp;<asp:Label ID="Label3" runat="server" Text="起止日期："></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="StartTime" runat="server" Width="80px" CssClass="txt"></asp:TextBox>&nbsp;至&nbsp;<asp:TextBox
                        ID="EndTime" runat="server" Width="80px" CssClass="txt"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="StartTime" Display="None" ErrorMessage="请输入开始日期"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="EndTime" Display="None" ErrorMessage="请输入结束日期"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label4" runat="server" Text="重要程度："></asp:Label>
                </td>
                <td class="style2">
                    <asp:RadioButtonList ID="Importance" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span style="color:Red">*</span>&nbsp;<asp:Label ID="Label2" runat="server" Text="项目经理："></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="PMName" runat="server" Width="250px" CssClass="txt"></asp:TextBox><asp:HiddenField
                        ID="PMID" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="PMName" Display="None" ErrorMessage="请选择项目经理"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label5" runat="server" Text="项目成员："></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="InnerMembers" runat="server" Width="250px" CssClass="txt"></asp:TextBox>
                    <asp:HiddenField
                        ID="InnerMemberIDs" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label6" runat="server" Text="外部人员："></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="OuterMembers" runat="server" Width="250px" CssClass="txt"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label7" runat="server" Text="项目状态："></asp:Label>
                </td>
                <td class="style2">
                    <asp:RadioButtonList ID="Status" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label8" runat="server" Text="备　　注："></asp:Label>
                </td>
                <td class="style2" style="height:40px;">
                    <asp:TextBox ID="Remark" runat="server" TextMode="MultiLine" Width="250px" 
                        CssClass="txt" Height="35px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowSummary="False"
        ShowMessageBox="True"></asp:ValidationSummary>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
</asp:Content>
